#ifndef NETASCIIMODE_H_
#define NETASCIIMODE_H_

#include "../clientHandler.h"

/**
 * offset
 * 
 * represent the offset from the begin of a file
 */
typedef struct offset{
	long offset;
	fpos_t pos;
} additionalData_t, *additionalData_p;

/**
 * author: Haim Tsolker.
 * 
 * handleAscii
 * 
 * data - msg_p contain UNIX format string
 * 
 * preform manipulate on data that after any apperance of \n
 * putting a \r right after it.
 * #of character that exceeded will be read at next time.
 * putting a flag if \n apper at the end of manipulate data,
 * so that it handle next time
 * return msg_p in windows format. 
 */
msg_p handleAscii(msg_p data);

#endif /*NETASCIIMODE_H_*/
